cmake_minimum_required(VERSION 3.9)
project(OrderMangager)

set(CMAKE_CXX_STANDARD 14)

set( CMAKE_BUILD_TYPE "Debug" )
set( CMAKE_CXX_FLAGS "-std=c++11" )
set( CMAKE_CXX_STANDARD 11)

set(CMAKE_C_COMPILER "gcc")
set(CMAKE_CXX_COMPILER "g++")


include_directories(
        ${PROJECT_SOURCE_DIR}/include
        ${PROJECT_SOURCE_DIR}/lib/
)
file(GLOB SOURCES "src/*.cpp" )
file(GLOB JSONSRC "lib/json/*.cpp" )
add_executable(${PROJECT_NAME} ${SOURCES} ${JSONSRC})

set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin )

message(STATUS "JSON_CPP PATH:${JSONSRC}")
message(STATUS "C_COMPILER: ${CMAKE_C_COMPILER}")
message(STATUS "CXX_COMPILER: ${CMAKE_CXX_COMPILER}")

